﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.ProjectArchiving
{
    using DB_NH.DB_Model.ywxt.ProjectArchiving;
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    public class Map_ProjectArchivingWeb : EntityMapping<ProjectArchivingWeb>
    {
        public Map_ProjectArchivingWeb()
        {

            //所属项目
            ManyToOne(x => x.project, map =>
            {
                map.Column("project");
                map.NotNullable(false);
            });

            Property(x => x.wzname, map =>
            {
                map.Length(200);
            });
            Property(x => x.wz, map =>
            {
                map.Length(200);
            });
            Property(x => x.wztype, map =>
            {
                map.Length(200);
            });





            //Table("ProjectArchivingWeb");


            //SchemaAction(NHibernate.Mapping.ByCode.SchemaAction.None);
        }
    }
}
